package org.qengine.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.qengine.entity.PapersEntity;

@Mapper

public interface PapersDao extends BaseMapper<PapersEntity> {
    @Select("SELECT * FROM papers WHERE paper_id = #{paper_id}")
    PapersEntity findById(Long paper_id);
    @Select("SELECT MAX(paper_id) FROM papers")
    Long getMaxId();
}
